package com.zds.service;

import com.zds.dao.UserDAO;
import com.zds.dao.impl.UserDAOImpl;
import com.zds.model.User;

/**
 * @author  Dongsheng Zhao
 * @Date  2017/4/19.
 */
public class UserService {

    private UserDAO userDAO;

    public void setUserDAO(UserDAO userDAO) {
        this.userDAO = userDAO;
    }

    public UserDAO getUserDAO() {
        return userDAO;
    }

    public void add(User user) {
        userDAO.save(user);
    }
}
